package com.xy.frame.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Administrator
 * 页面跳转 控制器
 */
@Controller
@RequestMapping("")
public class PageViewController {

	Logger logger = LoggerFactory.getLogger(PageViewController.class);
    
    /**
     * @return
     * 菜单列表页面
     */
    @RequestMapping(value = "/metro/toMenuListPage", method = RequestMethod.GET)
    public String toMenuListPage(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toMenuListPage】处理页面【/view/metro/menu/menuList.jsp】");
        }
        return "metro/menu/menuList";
    }
    /**
     * @return
     * 角色列表页面
     */
    @RequestMapping(value = "/metro/toRoleListPage", method = RequestMethod.GET)
    public String toRoleListPage(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toRoleListPage】处理页面【/view/metro/role/roleList.jsp】");
        }
        return "metro/role/roleList";
    }
    /**
     * @return
     * 用户列表页面
     */
    @RequestMapping(value = "/metro/toUserListPage", method = RequestMethod.GET)
    public String toUserListPage(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toUserListPage】处理页面【/view/metro/user/userList.jsp】");
        }
        return "metro/user/userList";
    }
    /**
     * @return
     * 用户权限页面
     */
    @RequestMapping(value = "/metro/toUserPermission", method = RequestMethod.GET)
    public String toUserPermission(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toUserPermission】处理页面【/view/metro/user/userPermission.jsp】");
        }
        return "metro/user/userPermission";
    }
    /**
     * @return
     * 角色权限列表页面
     */
    @RequestMapping(value = "/metro/toRolePermission", method = RequestMethod.GET)
    public String toRolePermission(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toRolePermission】处理页面【/view/metro/role/rolePermission.jsp】");
        }
        return "metro/user/rolePermission";
    }
    /**
     * @return
     * 任务列表页面
     */
    @RequestMapping(value = "/metro/toTaskListPage", method = RequestMethod.GET)
    public String toTaskListPage(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toTaskListPage】处理页面【/view/metro/role/taskList.jsp】");
        }
        return "metro/task/taskList";
    }
    /**
     * @return
     * 参数列表页面
     */
    @RequestMapping(value = "/metro/toParamListPage", method = RequestMethod.GET)
    public String toParamListPage(){
        if (logger.isDebugEnabled()) {
            logger.debug("请求【/metro/toParamListPage】处理页面【/view/metro/role/paramList.jsp】");
        }
        return "metro/param/paramList";
    }
}